/*
 * @Description:
 * @Author: mxy
 * @Date: 2022-12-10 18:08:54
 * @LastEditors: mxy
 * @LastEditTime: 2022-12-12 19:55:46
 */
import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import VuexPersistence from 'vuex-persist'

Vue.use(Vuex)
const vuexLocal = new VuexPersistence({
  storage: window.localStorage
})

export default new Vuex.Store({
  modules: { user },
  plugins: [vuexLocal.plugin]
})
